<%--
  Created by IntelliJ IDEA.
  User: 35201
  Date: 2025/7/20
  Time: 18:20
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>充值中心</title>
  <link rel="stylesheet" href="${pageContext.request.contextPath}/static/CSS/alipay/alipay.css">
</head>
<body>
<div class="container">
  <h1>充值余额</h1>

  <div class="recharge-options">
    <div class="recharge-option" data-amount="30">
      <div class="recharge-amount">30元</div>
    </div>

    <div class="recharge-option" data-amount="60">
      <div class="recharge-amount">60元</div>
    </div>

    <div class="recharge-option" data-amount="150">
      <div class="recharge-amount">150元</div>
    </div>

    <div class="recharge-option" data-amount="300">
      <div class="recharge-amount">300元</div>
    </div>

    <div class="recharge-option" data-amount="600">
      <div class="recharge-amount">600元</div>
    </div>

    <div class="recharge-option" data-amount="1200">
      <div class="recharge-amount">1200元</div>
    </div>

    <div class="recharge-option" data-amount="2400">
      <div class="recharge-amount">2400元</div>
    </div>
  </div>

  <div class="payment-methods">
    <div class="payment-title">支付方式</div>

    <div class="payment-options">
      <div class="payment-option selected" data-method="alipay">
        <img src="${pageContext.request.contextPath}/static/IMG/alipay/img.png" alt="支付宝">
      </div>
    </div>
  </div>

  <button id="payButton" class="submit-btn" disabled>确认充值</button>

  <div class="bonus-info">
    * 充值金额将直接存入您的账户余额，可用于陪玩服务
  </div>
  <div id="payDiv"></div>
</div>

<form id="paymentForm" style="display: none">
  <div class="form-item">
    <label for="widout_trade_no">商户订单号：</label>
    <input type="text" id="widout_trade_no" name="widout_trade_no">
  </div>
  <div class="form-item">
    <label for="widsubject">订单名称：</label>
    <input type="text" id="widsubject" name="widsubject">
  </div>
  <div class="form-item">
    <label for="widtotal_amount">付款金额：</label>
    <input type="text" id="widtotal_amount" name="widtotal_amount">
  </div>
  <div class="form-item">
    <label for="widbody">商品描述：</label>
    <input type="text" id="widbody" name="widbody">
  </div>
</form>

<script src='https://cdn.jsdelivr.net/npm/axios/dist/axios.min.js'></script>
<script src="${pageContext.request.contextPath}/static/JS/alipay/alipay.js"></script>
</body>
</html>

